package com.ssyt.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.ssyt.common.vo.User;
/**
 * 
 * @author f4qiankehua
 *
 */
public class Test {
	private User user;
    private String userName;
    
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	public void chePwd(){
		String username=user.getUsername();
	System.out.println(username);

	 HttpServletResponse rsponse=	ServletActionContext.getResponse();
	 PrintWriter out=null;
	try {
		out = rsponse.getWriter();
		out.print("........");
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	 
		
	}

}
